package cn.hxth.cloud.provider.service;

import cn.hxth.cloud.api.domain.*;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(rollbackFor = Exception.class)
public interface InventoryService {
    public Boolean updateProductInventoryForOrder(OrderInfo orderInfo) ;
    public Boolean updateProductOutputInventory(ProductOutputOrder productOutputOrder) ;
    public Boolean updateSteelsInventoryForOrder(List<ProductionOrder> productionOrders) ;
    public  Boolean updateSteelsInputInventory(SteelsInputOrder steelsInputOrder);
    public Boolean updateSteelsOutputInventory(SteelsOutputOrder steelsOutputOrder) ;
    public Boolean updateProductInputInventory(ProductInputOrder productInputOrder) ;

}
